<?php 

// var_dump($_SERVER);

$DEFAULT_LOCATION = "http://fw.marstone.net/welcome.php";

$serverName = $_SERVER["SERVER_NAME"];

$serverNameExploded = explode('.', $serverName, 2);


$location = $DEFAULT_LOCATION;

if(count($serverNameExploded) == 2) {
	// for marstone.net
	if($serverNameExploded[1] == "marstone.net") {
		switch(strtolower($serverNameExploded[0])) {
			case "blog" :
				$location = "http://marstone.spaces.live.com/";
				break;
		}
	}
}

// echo $location;

if($location != $DEFAULT_LOCATION) {
	header("Location: {$location}");
}

?>